remotemanager.decorators.remotefunction module

class remotemanager.decorators.remotefunction.RemoteFunction(function)[source]

Decorator class to store a function within the “cached functions” property.

Wrap a function with @RemoteFunction to store:

>>> @RemoteFunction
>>> def func(val):
>>>     return val

This function will then be made available in all runs:

>>> def main():
>>>     val = ...
>>>     return func(val)
>>>
>>> ds = Dataset(main)
>>> ...

Added in version 0.3.6.